<?php


  function mla_form_validation($form) {

    chkbadchar($form['title']['#value'], $form['title']['#title'], 'title');
    chkbadchar($form['field_mla_position']['und'][0]['value']['#value'], $form['field_mla_position']['und'][0]['value']['#title'], 'field_mla_position');
    chkbadchar($form['field_mla_desig']['und'][0]['value']['#value'], $form['field_mla_desig']['und'][0]['value']['#title'], 'field_mla_desig');
    chkbadchar($form['field_mla_career']['und'][0]['value']['#value'], $form['field_mla_career']['und'][0]['value']['#title'], 'field_mla_career');
    chkbadchar($form['field_mla_other']['und'][0]['value']['#value'], $form['field_mla_other']['und'][0]['value']['#title'], 'field_mla_other');
	chkbadchar($form['field_mla_ainfo']['und'][0]['value']['#value'], $form['field_mla_ainfo']['und'][0]['value']['#title'], 'field_mla_ainfo');
	chkbadchar($form['field_mla_madd']['und'][0]['value']['#value'], $form['field_mla_madd']['und'][0]['value']['#title'], 'field_mla_madd');
	chkbadchar($form['field_mla_occu']['und'][0]['value']['#value'], $form['field_mla_occu']['und'][0]['value']['#title'], 'field_mla_occu');

    // 1Reference url validation
    $reference_url = $form['field_mla_url']['und'][0]['value']['#value'];
    $title = $form['field_mla_url']['und'][0]['value']['#title'];

  }
